#ifndef QADDCOMBOITEMDIALOG_H
#define QADDCOMBOITEMDIALOG_H

#include "../qbasedialog.h"

namespace Ui {
class QAddComboItemDialog;
}

class QNameEdit;

class QAddComboItemDialog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QAddComboItemDialog(const QStringList &list,const QString &text,const QString &icon,QWidget *parent = 0);
    ~QAddComboItemDialog();
    
    QString get_text();
    QString get_icon();
private slots:
    void on_okBtn_clicked();

    void on_cancelBtn_clicked();

    void on_iconBtn_clicked();

private:
    Ui::QAddComboItemDialog *ui;

    QNameEdit   *m_text_edit;
    QString     m_text;
    QString     m_icon;
    QString     m_last_file;
};

#endif // QADDCOMBOITEMDIALOG_H
